package com.pxxy.mall.search.vo;

import com.pxxy.common.to.es.SkuEsModel;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Author zhangjj
 * @since 2024/1/27
 */
@Data
public class SearchResult implements Serializable {
    private List<SkuEsModel> products; //查询得商品信息


    /**
     * 分页信息
     */
    private Integer pageNum; //当前页码
    private Long total; //总记录数
    private Integer totalPage; //总页码

    private List<BrandVo> brands; //当前查询到得结果，所有设计到得品牌

    private List<CatalogVo> catalogs;//当前查询到得结果，所有设计到得分类
    private List<AttrVo> attrs;//当前查询到得结果，所有设计到得属性


    @Data
    public static class BrandVo {
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class CatalogVo {
        private Long catalogId;
        private String catalogName;
    }

    @Data
    public static class AttrVo {
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }


}
